﻿<Window x:Class="HMIWebGhostRemover.WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        Title="HMI Web Display - Ghost Connection Removal Tool" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" d:DesignHeight="267" SizeToContent="WidthAndHeight">
    <StackPanel>
        <StackPanel Orientation="Horizontal">
            <Button Content="Load Display(s)" Name="buttonLoadDisplay"/>
            <Button Content="Fix Selected Displays" Name="buttonRemoveGhosts"/>
            <Button Content="Save Changes" Name="buttonSaveChanges"/>
        </StackPanel>
        <ListBox Name="listBoxDisplays">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text="{Binding Path=FileName}"/>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="Ghosts"/>
                            <TextBlock Text="{Binding Path=DisplayReferenceGhosts.Count}"/>
                            <TextBlock Text=", Changed = "/>
                            <TextBlock Text="{Binding Path=HasChanges}"/>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </StackPanel>
</Window>
